<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="Login.css" rel="stylesheet" type="text/css">
</head>

<script>
function show(){
    var show = document.getElementById("showContent");//显示文本的对象
    var content = document.getElementById("content");//输入文字的对象

    show.innerHTML += content.value;//把两个相连接
}
</script>
<body>
<div id="login">
        <h1>请输入你的名字</h1>


<input id="content" name="content"/>
<button class="but" type="submit" id="btn" value="点击" name="sub" onClick="show()">登录</button>
    <h2 id="showContent">你好<br>亲爱的</h2>
    <form class="form-signup form-inline" action="home%20page2.html" method="post">
    <button class="two" type="submit" id="btn" value="点击" name="sub" ">登录成功后返回主页面</button>
    </form>



</body>
</html>